home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 November
/
MACPOWER-1997-11.ISO.7z
/
MACPOWER-1997-11.ISO
/
AMUG
/
MUSIC
/
bol-processor-271-data.sit
/
bol-processor-271-data
/
BP2 examples
/
BP2 data
/
-gr.tryflags3
< prev
next >
Wrap
Text File
|
1995-06-16
|
815b
|
21 lines
V.2.5
Date: Fri, Jun 16, 1995 -- 18:05
-in.abc1
-se.tryflags3
-ho.abc
// This grammar produces ALL strings of length 8 containing a's and b's, and c's in positions 4 and 6. Every string contains at least two a's.
// Note the four infinite-weight rules. If several of them are candidate then the first one is selected.
// On the "Misc. settings" dialog, "Produce all items" is ON.
// The number of different strings thus produced is 53.
RND
GRAM#1[1] S --> X /pos = 1/ /done = 0/
GRAM#1[2] X --> a X /pos +1/ /done +1/
GRAM#1[3] X --> b X /pos +1/
GRAM#1[4] <ー> /pos > 8/ X --> lambda [Infinite weight]
GRAM#1[5] <ー> /pos ウ 7/ /done < 2/ X --> a X /pos +1/ /done +1/ [Infinite weight]
GRAM#1[6] <ー> /pos = 4/ X --> c X /pos +1/ [Infinite weight]
GRAM#1[7] <ー> /pos = 6/ X --> c X /pos +1/ [Infinite weight]